package cn.tedu._07vehicle.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;

/**
 * @author tune_the last
 * @date 2025/11/14 - 16:08
 */
@Data
public class UserRegParam {
//    @NotNull(message = "用户名不能为NULL")
//    @NotEmpty(message = "用户名不能为NULL和空字符串")
//    @NotBlank(message = "用户名不能为NULL和空字符串和空白串")
//    @Size(max = 8, min = 3, message = "用户名长度必须在3-8位之间")

    @Schema(description = "用户名", required = true)
    private String username;
    @Schema(description = "密码", required = true)
    private String password;
//    @Email(message = "邮箱格式错误")
    @Pattern(regexp = "\\w[-\\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\\.)+[A-Za-z]{2,14}",message = "邮箱格式错误")
    @Schema(description = "邮箱", required = true)
    private String email;
    @Schema(description = "手机号", required = true)
    private String phone;
}
